<?php
class LogModel extends FW24H_Model {
	var $tableName = '24hfw_logs';
	var $_primaryKey = 'log_id';

	var $_cache = false;

	function insertLog( $log_code, $log_message, $log_action='none') {
		$arrLogs['log_24fw_user_id'] = $_SESSION['OCM_UID'];
		$arrLogs['log_action'] = $log_action;
		$arrLogs['log_message'] = $log_message;
		$arrLogs['log_code'] = $log_code;
		$arrLogs['log_date'] = date( 'Y-m-d H:i:s');

		$this->save( $arrLogs);
	}
}
